//导航配置文件
import vuex from "../store";
const { role } = vuex.state.user;
//role：1、管理员 2、普通用户  !1不能看购物车等等
export default {
  //左侧的数据
  sideNav: [
    {
      path: "/",
      name: "首页",
      role: "all",
      icon: "el-icon-user-solid",
      children: [
        {
          name: "统计",
          path: "/tongji",
          icon: "el-icon-s-home",
          role: "all"
        },
        { name: "视图", path: "/views", icon: "el-icon-s-home", role: "all" }
      ]
    },
    { name: "购物车", icon: "el-icon-shopping-cart-full", path: "/shop" },
    { name: "订单", icon: "el-icon-close-notification", path: "/dz" },
    { name: "账户", icon: "el-icon-film", path: "/account" }
  ]
};
